\name{GetPoints}
\alias{GetPoints}
%- Also NEED an '\alias' for EACH other topic documented here.
\encoding{UTF-8}
\title{
Gets the spatial coordinates of the Geometry
}
\description{
获取几何对象的空间点坐标信息
}
\usage{
GetPoints(obj)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{obj}{
  几何对象，可以为\code{\link{GeoPoint-class}}, \code{\link{GeoLine-class}}, \code{\link{GeoRegion-class}}。
}
}
\details{
%%  ~~ If necessary, more details than the description above ~~
}
\value{
成功返回一个list，list第一个元素为存储xy值的matrix，第二个元素为子对象点数目。
失败返回NULL
}
\references{
%% ~put references to the literature/web site here ~
}
\author{
%%  ~~who you are~~
}
\note{
%%  ~~further notes~~
}

%% ~Make other sections like Warning with \section{Warning }{....} ~

\seealso{
\code{\link{SetPoints}}
}
\examples{
ps <- matrix(nrow = 15, ncol = 2)
ps[,1] <- c(10,20,20,10,10,110,120,120,110,110,110,120,120,110,110)
ps[,2] <- c(10,10,20,20,10,10,10,20,20,10,110,110,120,120,110)
geo <- CreateRegion(ps, c(5,5,5))
pnts <- GetPoints(geo)
}
% Add one or more standard keywords, see file 'KEYWORDS' in the
% R documentation directory.
\keyword{ supermap }% use one of  RShowDoc("KEYWORDS")

